﻿@model DFYE.Web.Models.student
@using JULONG.WEB.Library;
@{
    ViewBag.Title = "Index";
    var studentDaily = Model.studentDaily.Where(d=>d.able==true);
    
    paging paging = new paging();
    dynamic pagingMode;
    paging.pageSize = 10;
    var vModel = paging.content(
        studentDaily,
        out pagingMode, Html.getRoute("page").As<int>()
        );
    ViewBag.paging = pagingMode;    
}

<div style="float:left; margin-right:20px;width:200px;">
        <img alt="" src="/Content/images/studentsDailyTitle.jpg" />
        <a href="/students/" class="linkBtn">学生日志</a>
        <a href="/students/guestbook/" class="linkBtn">家长留言</a>
        <div style="padding-left:20px; padding-top:20px; background:url(/content/images/userinfobg.gif);width:164px; height:123px; color:#fff;">
	        姓名：<span>@Model.name</span>
            <br />
            生日：
                @if (Model.birthday != null)
                {
                    @Model.birthday.Value.ToString("yyyy年 MM月 dd日");
                }
                
@*            <h2><img src="@Model.pic" /></h2>*@
            <br />
            <h3><a href="/students/loginOff">退出</a></h3>
        </div>
        

</div>
<div class="nav" style=" text-align:right">
    <span style="padding-right:20px">学生日志</span>
    <div style="background:url(/Content/images/titleLine.png); background-position:right; background-repeat:no-repeat; height:9px; width:586px; border:0px solid red; overflow:hidden;"></div>
</div>
<table>
@foreach (var item in vModel)
{
    <tr>
        <td>
            <span style=" font-size:16px; color:Gray; font-family:Impact;">@Html.DisplayFor(modelItem => item.createDate)</span>
            [ @Html.DisplayFor(modelItem => item.studentDailyType.name) ]
            <span style=" font-weight:bold">  @Html.DisplayFor(modelItem => item.title)</span>
            <div style=" margin-left:20px; padding:5px; letter-spacing:1px; color:Gray">
                @Html.DisplayFor(modelItem => item.content)
            </div>
        </td>

@*        <td>
            @Html.DisplayFor(modelItem => item.teacherID)
        </td>*@
    </tr>
}

</table>
@Html.Partial("paging", new { action = "Index" })
<div class="clearFloat" ></div>